<? 
#include("../../infopix.scheduler/classes/Infopix.Scheduler.class.php");


include("../../infopix.core.php5/Grid.class.php");
include("../../infopix.core.php5/DB/DataBase.class.php");
include("../../infopix.core.php5/GridSource.class.php");
include("../../infopix.core.php5/GridPresenter.class.php");
include("../../infopix.core.php5/GUI/HtmlLink.class.php");
include("../../infopix.core.php5/GridLinker.class.php");
include "../../infopix.core.php5/GridSorter.class.php";
include "../../infopix.core.php5/GridSortPage.class.php";

#include("../../classes/business/panel_control/Sucursal.class.php");
#include("../../infopix.core.php5/Security/User.class.php");
#include("../../infopix.core.php5/Security/SecurityManager.class.php");
include("../../infopix.core.php5/Utilities/Application.class.php");
#include("../../includes/lock.php");

?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
	<div id="">
			<h3>Sites</h3>
		<a href="../insert/sites.php" class="agregar">Agregar</a><br />

		  <?
			$sql = "SELECT * FROM sites";	
			$g = new Grid();
			GridDataSource::Fill($g, GridSorter::SortQuery($sql, $_REQUEST[order]));
			$a = new htmlLink("../select/userinfo.php?id=","Detalles",0,"?id=","newWindow('../usersinfo.php?id=*','windowTittle')");
			$b = new htmlLink("../update/sites.php?id=","Editar",0,"", "");
			$c = new htmlLink("../delete/delete.php?tabla=sites&redirect=../select/sites.php&id=", "Eliminar", 0, "", "");
			$links = array($a, $b, $c);

			echo GridSortPage::Render($sql, $links, $_REQUEST['order'], 50, $_REQUEST['pag']);
		?>

	</div>
</body>
</html>